package se.webbzon.boltzmann.editor.component.sequence.factory;

import se.webbzon.boltzmann.game.object.dialogue.DialogueBackground;
import se.webbzon.boltzmann.game.object.dialogue.layout.SimpleDialogueLayout;
import se.webbzon.boltzmann.game.sequence.builder.AbstractSequenceRow;
import se.webbzon.boltzmann.game.sequence.builder.SequenceBuilder;
import se.webbzon.boltzmann.game.sequence.builder.dialogue.SimpleDialogueRow;

public class SimpleDialogueRowFactory extends AbstractSequenceRowFactory {
	
	// The layout used to create simple dialogue rows
	private final SimpleDialogueLayout layout;

	/*============================================================
	Constructors
	============================================================*/
	
	public SimpleDialogueRowFactory(SimpleDialogueLayout layout) {
		super(SimpleDialogueRow.name);
		this.layout = layout;
	}
	
	/*============================================================
	Constructors
	============================================================*/

	@Override public AbstractSequenceRow makeNew(SequenceBuilder builder) {
		return new SimpleDialogueRow(	builder,
										layout,
										DialogueBackground.NORMAL,
										"Undefined text.");
	}

}
